package cn.csc.module.product.controller.admin.skuattrjson.vo;

import cn.csc.framework.common.pojo.PageParam;
import cn.csc.module.product.controller.admin.spu.vo.SkuAttrCreateReqVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.util.Date;
import java.util.List;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("管理后台 - 商品sku属性关联JSON信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SkuAttrJsonPageReqVO extends PageParam {

    @ApiModelProperty(value = "SPU ID")
    private BigInteger spuId;

    @ApiModelProperty(value = "SKU ID")
    private BigInteger skuId;

    @ApiModelProperty(value = "销售属性名称")
    private List<SkuAttrCreateReqVO> attrJson;

    @ApiModelProperty(value = "状态 1:enable, 0:disable, -1:deleted")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] createTime;

}
